package com.zhang.util;

/**
 * @title:
 * @author: zhangyf
 * @date: 2023/3/29 13:48
 **/
public class Result<T> {
    public Integer code; // 返回码

    public String message; // 返回信息

    public  T data; // 返回数据类型

    public Result(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public static <T> Result<T> of(Integer code,String message,T data){
        return new Result<T>(code, message, data);
    }
}
